import javax.swing.*;

public class eg9_1 {
    public static void main(String[] args) {
        MyFrame myFrame=new MyFrame();
        myFrame.setVisible(true);
    }

    public static class MyFrame extends JFrame {
        public MyFrame(){
            this.setTitle("我的窗体");
            this.setBounds(260,100,600,400);
            this.setDefaultCloseOperation(EXIT_ON_CLOSE);
        }
    }
}
